// import { PrismaClient } from "@prisma/client";
// 自定义的 PrismaClient
import { PrismaClient } from "../prisma/generated/client";

const prisma = new PrismaClient();

async function main() {
  // We create a new user
  const newrecord = await prisma.transactionRecord.create({
    data: {
        buy_taining_room: "Aardonyx",
        taining_room: "Sauropods 进化早期阶段。",
        num: 1,
        ctime: Date.now(),
        utime: Date.now(),
      },
  });

  console.log("New transactionRecord:");
  console.log(newrecord);

}

main()
  .catch((e) => {
    throw e;
  })
  .finally(async () => {
    await prisma.$disconnect();
  });
